﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Core.Permission
{
    /// <summary>
    /// 权限定义
    /// </summary>
    public interface IPermissionDefinitionProvider
    {
        /// <summary>
        /// 定义前处理
        /// </summary>
        /// <param name="context"></param>
        void PreDefine(IPermissionDefinitionContext context);
        /// <summary>
        /// 定义权限
        /// </summary>
        /// <param name="context"></param>
        void Define(IPermissionDefinitionContext context);
        /// <summary>
        /// 定义后处理
        /// </summary>
        /// <param name="context"></param>
        void PostDefine(IPermissionDefinitionContext context);
    }
}
